package gameobjects;

/**
 * Author: Gunnar Sigurðsson
 * Date: 11/21/12
 * Time: 4:57 PM
 */

/**
 * The Player class contains all information on a single player.
 */
public class Player {
    /**
     * The player's chosen name.
     */
    private String name;

    /**
     * The player's mark, usually an 'X' or an 'O'.
     */
    private char mark;

    /**
     * Initializes the Player object with a name and a mark.
     * @param pNname The player's chosen name.
     * @param pMark The player's mark, usually an 'X' or an 'O'.
     */
    public Player(final String pNname, final char pMark) {
        this.name = pNname;
        this.mark = pMark;
    }

    /**
     * @return Player name
     */
    public final String getName() {
        return name;
    }

    /**
     * @return Player mark
     */
    public final char getMark() {
        return mark;
    }
}
